<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加生产工厂</title>
<script language="javascript">
	//确认保存相关操作
	function save() {
		var factory_name = $("#factory_name").val();
		if(!factory_name){
			alert("生产工厂名不能为空");
		}
		$("#otherForm").submit();
	}
</script>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
	<div class="centercontent">
		<div class="pageheader notab">
			<h1 class="pagetitle">添加生产工厂</h1>
		</div>
		<!--pageheader-->
		<div id="contentwrapper" class="contentwrapper">
			<div id="basicform" class="subcontent">
				<form class="stdform stdform2"  id="otherForm" method="post" action="/batchorder/addProduceFactory" enctype="multipart/form-data" >
					<input type="hidden" value="{{$factory.id}}" name="factory_id" id="factory_id" />

					<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
						<thead>
						<tr>
							<th colspan="2" class="head1">添加生产工厂</th>
						</tr>
						</thead>
					</table>
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
						<tbody>
						<tr>
							<td class="head1">工厂名称</td>
							<td class="head0" colspan="4"><input type="text" id = "factory_name" name="factory_name" class="width300" value="{{$factory.name}}" placeholder="请输入工厂名称"></td>

						</tr>
						<tr>
							<td class="head1">电话</td>
							<td class="head0"  colspan="4">
								<input type="text" name="phone"  id="phone" class="width300" value="{{$factory.phone}}" placeholder="请输入电话">
							</td>
						</tr>
						<tr>
							<td class="head1">地址</td>
							<td class="head0"  colspan="4"><input type="text" id= "address" name="address" class="width500" value="{{$factory.address}}" placeholder="请输入地址"></td>
						</tr>
						<tr id="beizhu">
							<td class="head1">描述</td>
							<td class="head0" colspan="4">
								<textarea name="memo" cols="10" rows="6" placeholder="请输入相关描述，如：开户行，银行账号等">{{$factory.descr}}</textarea>
							</td>
						</tr>
						</tbody>
					</table>
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
						<thead>
						<tr>
							<td><button type="button" class="btn btn-primary" onClick="save()">确认保存</button>
							</td>
						</tr>
						</thead>
					</table>
				</form>
				<br />
			</div>
			<!--subcontent-->

			<!--subcontent-->

		</div>
		<!--contentwrapper-->

	</div>
	<!-- centercontent -->

</div>
<!--bodywrapper-->

</body>
</html>